//
//  HomeItemModel.swift
//  XiaoJingMallSwift
//
//  Created by beisheng03 on 2017/7/21.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class HomeItemModel: NSObject {
    
    var image = ""
    var type = ""
    var data = ""
    var gc_id = ""
    var goods_id = ""
    var goods_price = ""
    var goods_image = ""
    var goods_name = ""
    var detail_url = ""
    var nc_distinct = ""
    var goods_image_url = ""
    var cart_id = ""
    var store_id = ""
    var goods_num = ""
    var isSelect = true
    
    var goods_salenum = "-999"
    var goods_jingle = "-999"
    var store_name = "-999"
    var is_virtual = "-999"


    
    init(dic : [String : AnyObject]) {
        super.init()
        
        setValuesForKeys(dic)
        
    }
    
    
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
        
    }
    
    
    //在swift中想要打印对象要以下重写属性
    override var description: String{
        let keys = ["image","type","gc_id","data","goods_id","goods_price","goods_image","goods_name","detail_url","nc_distinct","goods_image_url","cart_id","store_id","goods_num","goods_salenum","goods_jingle","store_name","is_virtual"]
        let dic = dictionaryWithValues(forKeys: keys)
        return "\(dic)"
    }
    

}
